package webserver;

import webserver.iterfaces.IHttpResponse;

public class HttpTextResponse implements IHttpResponse {
    private int code;
    private String contentType;
    private String resultPage;

    public String getResultPage() {
	return resultPage;
    }

    public HttpTextResponse setResultPage(String resultPage) {
	this.resultPage = resultPage;
	return this;
    }

    public byte[] getResponse() {
	return resultPage.getBytes();
    }

    public int getCode() {
	return code;
    }

    public HttpTextResponse setCode(int code) {
	this.code = code;
	return this;
    }

    public String getContentType() {
	return contentType;
    }

    public HttpTextResponse setContentType(String contentType) {
	this.contentType = contentType;
	return this;
    }
}
